package com.springboot.blog.beans;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
@TableName(value = "blog_gonggao")
public class BlogGonggao implements Serializable {
    private static final long serialVersionUID = 4L;

    @TableId(value = "blog_ggid", type = IdType.AUTO)
    private Integer blogGgid;

    @TableField(value = "blog_ggtitle")
    private String blogGgtitle;

    @TableField(value = "blog_ggcontent")
    private String blogGgcontent;

    @TableField(fill = FieldFill.INSERT_UPDATE,value = "blog_createtime")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="Asia/Beijing")
    private Date blogCreatetime;

    @TableLogic
    @TableField(fill = FieldFill.INSERT,value = "blog_ggdetele")
    private Integer blogGgdetele;
}
